//
//  JSQMessageTools.h
//  Conversation
//
//  Created by C_HAO on 15/9/23.
//  Copyright © 2015年 CHAOO. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JSQMessagesEnum.h"
#import <AssetsLibrary/AssetsLibrary.h>


@interface JSQMessageTools : NSObject

+ (NSDictionary *)expression;

+ (NSDictionary *)expressionConvert;

+ (BOOL)analyzeEmotion:(NSMutableAttributedString * *)emotionAttributedString;

+ (NSString *)getCurrentSystemDateSecond;

+ (BOOL)isFilePath:(NSString *)filePath;

+ (NSString *)fileSizeWithByteString:(NSString *)filePath;

+ (NSString *)audioFilePath:(NSString *)filePath;

+ (BOOL)timeDifference:(NSDate *)startDate date:(NSDate *)endDate interval:(NSInteger)seconds;

+ (NSString *)enumToString:(MessageClass)messageClass;

+ (NSString *)enumMessageTypeToString:(JSQMessageType)messageType;

+ (UIImage *)thumbnailForAsset:(ALAsset *)asset maxPixelSize:(NSUInteger)size;

+ (NSString *)imagePath:(NSString *)imageName;

+ (NSString *)voicePath:(NSString *)voiceName;

+ (NSDictionary *)jsq_linkTextAttributes;

+ (UIImage *)scaleToSize:(UIImage *)image size:(CGSize)size;

@end
